package org.jeecg.modules.demo.qualityOrder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 质检单
 * @Author: jeecg-boot
 * @Date:   2021-11-26
 * @Version: V1.0
 */
@Data
@TableName("pu_quality_order")
@ApiModel(value="pu_quality_order对象", description="质检单")
public class PuQualityOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**质检单编号*/
	@Excel(name = "质检单编号", width = 15)
    @ApiModelProperty(value = "质检单编号")
    private java.lang.String qoNum;
	/**合同编号*/
	@Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private java.lang.String puConNo;
	/**采购订单号*/
    @ApiModelProperty(value = "采购订单号")
    private java.lang.String poOrder;
	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    @Dict(dictTable = "YX_WAREHOUSE",dicCode = "WH_NUM",dicText = "WH_NAME")
    private java.lang.String whNum;
	/**入库单编号*/
	@Excel(name = "入库单编号", width = 15)
    @ApiModelProperty(value = "入库单编号")
    private java.lang.String woNo;
	/**质检单类型*/
	@Excel(name = "质检单类型", width = 15)
    @ApiModelProperty(value = "质检单类型")
    @Dict(dicCode = "zjlx")
    private java.lang.String qoType;
	/**质检数量*/
	@Excel(name = "质检数量", width = 15)
    @ApiModelProperty(value = "质检数量")
    private BigDecimal qoQuantity;
	/**发热量*/
	@Excel(name = "发热量", width = 15)
    @ApiModelProperty(value = "发热量")
    private java.lang.Double qoCal;
	/**制单日期*/
	@Excel(name = "制单日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "制单日期")
    private java.util.Date qoDate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	//业务员
    @Excel(name = "审核人", width = 15)
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
	private java.lang.String saleman;

    @Dict(dicCode= "checkState")
    private java.lang.Integer shenhe;
    private java.lang.Integer shanchu;

    //含税单价
    private Double  hsdj;
    //含税金额
    private Double hsje;
    //单价
    private Double wsdj;
    //金额
    private Double wsje;
    /**税额*/
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal psTax;
    /**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    @Dict(dicCode = "tax_rate")
    private java.lang.Integer psTaxrat;
    //存货名称
    private String cinvname;
    //计量单位
    private String measureunit;

    private String zhilzbjson;

    private String zhilzb;

    private String realzb;

    private String chumdwmc;

    private String zjdw;

    private Double kouton;
    //备注
    private String remark;

    private Integer ruku;

    /**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String poStaff;
    //附件
    private String accessory;
    //项目
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    private String project;
    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;

    /**订单总量*/
    @Excel(name = "订单总量", width = 15)
    @ApiModelProperty(value = "订单总量")
    private java.math.BigDecimal poTotail;
    /**
     * 租户ID
     */
    private Integer tenantId;
    private  String tradecode;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;

    private Integer documentType;

    private String tocr;

    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;

}
